package site.edody.dframe.websocket;

import jakarta.websocket.Session;
import jakarta.websocket.server.PathParam;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 消息接口
 */
public interface WebSocketListener {


    public void onOpen(String sid);

    public void onClose(String sid);

    public void onMessage(String sid,String message) ;

    public void onError(String sid, Throwable error);

}
